Feature: Demonstrate CRUD with Behave and Selenium

  Background:
    Given I open a web browser

  Scenario: Visit the login page
     When I browse to the "login" page
     Then I should be on the "login" page

  Scenario: Can not sign in without proper credentials
    Given I am on the "login" page
     When I login with bogus credentials
     Then I should be on the "login" page
      And I should see "Invalid username"

  Scenario: Can sign in with proper credentials
    Given I am on the "login" page
     When I login as the admin
#    Then I should be signed in
     Then I should be on the "all" "posts" CRUD page
      And I should see "You were logged in"
      And I should see "log out"
